package com.soft.service.imp;

import com.soft.service.StudentAnyService;
import com.soft.mapper.StudentAnyMapper;
import com.soft.service.StudentAnyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class StudentAnyServiceImpl implements StudentAnyService {

    @Autowired //将spring 容器中的studentAnyMapper的实现类赋值给当前的类成员变量
    private StudentAnyMapper studentAnyMapper;


    @Override
    public List<Map<String, Object>> listClassesInfo() {
        return studentAnyMapper.listClassesInfo();
    }

    @Override
    public Map<String, Double> findClassesCoreTaskCompleteRate() {
        return studentAnyMapper.findClassesCoreTaskCompleteRate();
    }

    @Override
    public Map<String, Double> findClassesCoreSubmitRate() {
        return studentAnyMapper.findClassesCoreSubmitRate();
    }

    @Override
    public Map<String, Double> findClassesCoreTaskCompleteRateLt40() {
        return studentAnyMapper.findClassesCoreTaskCompleteRateLt40();
    }

    @Override
    public Map<String, Double> findClassesCoreTaskCompleteRateGt80() {
        return studentAnyMapper.findClassesCoreTaskCompleteRateGt80();
    }

    @Override
    public List<Map<String, Object>> listClassesCoreTaskCompleteRateLt40() {
        return studentAnyMapper.listClassesCoreTaskCompleteRateLt40();
    }

    @Override
    public List<Map<String, Double>> listAllClassTotalAndAvgScore() {
        return studentAnyMapper.listAllClassTotalAndAvgScore();
    }

    @Override
    public List<Map<String, Object>> listEveryClassAvgScore() {
        return studentAnyMapper.listEveryClassAvgScore();
    }

    @Override
    public Map<String, Integer> listStudentLevelCount() {
        return studentAnyMapper.listStudentLevelCount();
    }

    @Override
    public List<Map<String, Object>> listEveryClassesCoreTaskCompleteRateAndCoreSubmitRate() {
        return studentAnyMapper.listEveryClassesCoreTaskCompleteRateAndCoreSubmitRate();
    }
}
